package com.lzm.ydpt.entity.mall;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * 商城分类
 */
public class MallCaty implements Parcelable {
    private String image_src;
    private String catyName;
    private long catyId;

    public MallCaty(String catyName) {
        this.catyName = catyName;
    }

    public String getImage_src() {
        return image_src;
    }

    public void setImage_src(String image_src) {
        this.image_src = image_src;
    }

    public String getCatyName() {
        return catyName;
    }

    public void setCatyName(String catyName) {
        this.catyName = catyName;
    }

    public long getCatyId() {
        return catyId;
    }

    public void setCatyId(long catyId) {
        this.catyId = catyId;
    }

    protected MallCaty(Parcel in) {
        image_src = in.readString();
        catyName = in.readString();
        catyId = in.readLong();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(image_src);
        dest.writeString(catyName);
        dest.writeLong(catyId);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<MallCaty> CREATOR = new Creator<MallCaty>() {
        @Override
        public MallCaty createFromParcel(Parcel in) {
            return new MallCaty(in);
        }

        @Override
        public MallCaty[] newArray(int size) {
            return new MallCaty[size];
        }
    };
}
